﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var uid = textBox1.Text;
            var pwd =textBox2.Text;
 

            var userName = "admin";
            var passWord = "12345";
            if (uid == userName && pwd == passWord)
            {
                MessageBox.Show("登录成功");
                Form2 form2 = new Form2();
                form2.Show();
                this.Hide();
            }

            else
            {
                MessageBox.Show("登录失败");
            }

        }

        private void button2_Click(object sender, EventArgs e)
        {
            Form3 form3 = new Form3();
            this.Hide();
            form3.Show();

        }
    }
}
